<include file="Public/header" title="节点列表" />
<include file="Public/sidebar" />
<script type="text/javascript">
	

</script>
<!-- 内容开始 -->
<div class="col-sm-9 col-xm-9 col-md-10  content">
<div id="node" >
	<a  href="{:U('/__CONTROLLER__/role')}" class="add-app">返回</a>
	<form action="{:U('/__CONTROLLER__/accessHandle')}">
		<foreach name="node" item="app">
			<div class="app">
				<strong>{$app.title}</strong> 
				<input type="checkbox" name="access[]" value="{$app.id}_1" level="1" <if condition='$app["access"]'>checked='checked'</if>>
			</div>
			<foreach name="app.child" item="controller">
			
					<div id="controller" class="breadcrumb">
						<strong>{$controller.title}</strong>
						<input type="checkbox" name="access[]" value="{$controller.id}_2" level="2" <if condition='$controller["access"]'>checked='checked'</if> />
					</div>
					<foreach name="controller.child" item="method">
						<div id="method">
							<span>{$method.title}</span>
							<input type="checkbox" name="access[]" value="{$method.id}_3" level="3" <if condition='$method["access"]'>checked='checked'</if>/>
						</div>
					</foreach>
					<div class="clearfix"></div>
			</foreach>
			<div class="clearfix"></div>
		</foreach>
		<input type="hidden" name="rid" value="{$rid}" />
		<input type="submit" class="btn btn-success btn-block" value="保存修改" />
	</form>

</div>

</div>
<!-- 内容结束 -->


<include file="Public/footer"  />

